package com.duowei.diandan.db.dao;

import android.arch.persistence.room.Dao;
import android.arch.persistence.room.Insert;
import android.arch.persistence.room.Query;
import android.arch.persistence.room.Update;

import com.duowei.diandan.db.entry.Wmlsbjb;

/**
 * 表中只存一行数据
 */
@Dao
public interface WmlsbjbDao {

    @Query("SELECT * FROM wmlsbjb LIMIT 1")
    Wmlsbjb findOne();

    @Insert
    long insert(Wmlsbjb item);

    @Query("DELETE FROM wmlsbjb")
    void deleteAll();

    @Update
    void update(Wmlsbjb item);
}
